package com.pktechan.api.dao;

import com.pktechan.api.base.BaseMapper;
import com.pktechan.api.entity.MiniSubscribeMessageRecord;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: cloudfloating
 * @description: 消息订阅记录
 * @author: qx.zhang
 * @create: 2021-06-23 11:32
 **/
@Repository("miniSubscribeMessageRecordMapper")
public interface MiniSubscribeMessageRecordMapper extends BaseMapper {
    /**
     * 根据模板ID与客户ID查询客户消息订阅记录
     *
     * @param miniSubscribeMessageRecord
     * @return
     */
    MiniSubscribeMessageRecord getByTemplateIdAndCustId(MiniSubscribeMessageRecord miniSubscribeMessageRecord);

    /**
     * 查询客户是否订阅消息通知
     *
     * @param openId
     * @return
     */
    List<MiniSubscribeMessageRecord> getListByOpenId(String openId);
}
